# from apscheduler.schedulers.background import BackgroundScheduler
# from django_apscheduler.jobstores import DjangoJobStore, register_job, register_events
#
# from apps.rb_data.get_data import rb_check, update_name_list, data_cheat_check
#
# scheduler = BackgroundScheduler()
# scheduler.add_jobstore(DjangoJobStore(), 'default')
#
#
# # 时间间隔3秒钟打印一次当前的时间
# @register_job(scheduler, "interval", seconds=60 * 60 * 24, id='rb_data_check')
# def job1():
#     rb_check()
#
#
# @register_job(scheduler, 'interval', seconds=60 * 60 * 1, id='update_name_list')
# def job2():
#     update_name_list()
#
#
# @register_job(scheduler, 'interval', seconds=60 * 60 * 3, id='data_cheat_check')
# def job3():
#     data_cheat_check()
#
#
# # per-execution monitoring, call register_events on your scheduler
# register_events(scheduler)
# scheduler.start()